package com.wanlian.netty.File.msg;

import com.wanlian.netty.ConstantCode;

public class FilePeerMsgHead {
    /**
     * 消息的开头的信息标志
     */
    private int head_data = ConstantCode.HEAD_DATA;
    private int msg_type = ConstantCode.COMMON_MSG;
    private int msgLength;
    private int dataLength;
    private int version;

    public FilePeerMsgHead() {
        this.setVersion(1);
        this.setMsg_type(ConstantCode.FILE_MSG);
    }

    public int getMsg_type() {
        return msg_type;
    }

    public void setMsg_type(int msg_type) {
        this.msg_type = msg_type;
    }

    public int getMsgLength() {
        return msgLength;
    }

    public void setMsgLength(int msgLength) {
        this.msgLength = msgLength;
    }

    public int getDataLength() {
        return dataLength;
    }

    public void setDataLength(int dataLength) {
        this.dataLength = dataLength;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getHead_data() {
        return head_data;
    }

    public void setHead_data(int head_data) {
        this.head_data = head_data;
    }

    public int getHeadData() {
        return this.head_data;
    }

    public int getMsgType() {
        return this.msg_type;
    }

    public void setMsgType(int msgType) {
        this.msg_type = msgType;
    }
}
